<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        header a {
            text-decoration: none;
            color: #666;
        }

        .el-table .el-table__cell {
            /*排名行间距*/
            padding: 0; /*设置表格行之间的距离为0*/
        }
    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="150px">
            <!--垂直居中-->
            <div style="width: 1200px;margin: 0 auto">
                <img src="imgs/logo.png"
                     style="width: 300px;vertical-align: middle" alt="">
                <!--分割线-->
                <a href="">首页</a>
                <el-divider direction="vertical"></el-divider>
                <a href="">热点咨询</a>
                <el-divider direction="vertical"></el-divider>
                <a href="">翻译</a>
                <el-divider direction="vertical"></el-divider>
                <a href="">个人中心</a>
                <el-divider direction="vertical"></el-divider>
                <a href="">订单管理</a>
            </div>
            <!--mode 设置横向，去掉纵向-->
            <div style="background-color: #82c8ec">
                <el-menu text-color="#fff" background-color="#82c8ec"
                         active-text-color="yellow" mode="horizontal" style="width: 1200px;margin: 0 auto">
                    <el-menu-item index="1">精彩活动</el-menu-item>
                    <el-menu-item index="2">当季男装</el-menu-item>
                    <el-menu-item index="3">电子产品</el-menu-item>
                    <el-menu-item index="4">品牌女装</el-menu-item>
                    <el-menu-item index="5">医药健康</el-menu-item>
                    <el-menu-item index="6">每日生鲜</el-menu-item>
                    <el-menu-item index="7">鲜花水果</el-menu-item>
                    <!--搜索框位置微调，相对定位-->
                    <div style="float: right;position: relative;top: 10px">
                        <el-input placeholder="请输入搜索的内容" v-model="search">
                            <!--搜索框 solt 槽里追加-->
                            <el-button slot="append" icon="el-icon-search"
                            ></el-button>
                        </el-input>
                    </div>
                </el-menu>
            </div>
        </el-header>
        <!--设置图片居中显示-->
        <el-main style="width: 1200px;margin: 0 auto">
            <el-row gutter="20">
                <el-col span="18">
                    <!--走马灯开始-->
                    <el-carousel height="350px">
                        <el-carousel-item>
                            <img src="imgs/b1.jpg" height="100%" width="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="imgs/b2.jpg" height="100%" width="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="imgs/b3.jpg" height="100%" width="100%" alt="">
                        </el-carousel-item>
                    </el-carousel>
                    <!--走马灯结束-->
                </el-col>
                <el-col span="6">
                    <!--排行榜开始-->
                    <el-card>
                        <h3>
                            <i style="font-weight: bold" class="el-icon-trophy">销量最高</i>
                        </h3>
                    </el-card>
                    <el-divider></el-divider>
                    <el-table :data="topArr">
                        <el-table-column type="index" label="排名">
                        </el-table-column>
                        <el-table-column prop="title" label="商品信息">
                        </el-table-column>
                        <el-table-column prop=saleCount label="销量">
                        </el-table-column>
                    </el-table>

                    <!--排行榜结束-->
                </el-col>
            </el-row>
        </el-main>
        <!--商品列表开始-->
        <el-row gutter="10" >
            <!--添加图片上下外边距，span=“6” 一行显示4张照片-->
            <el-col style="margin: 10px 0" span="6" v-for="p in productArr">
                <el-card>
                    <!--图片路径-->
                    <img :src="p.url "width="100%" alt="">
                    <div>
                        <p style="font-size: 15px" >{{p.title}}</p>
                        <p>￥{{p.price}}  <s>￥{{p.oldPrice}}</s>
                            <span style="float: right">{{p.saleCount}}</span>
                        </p>
                    </div>
                </el-card>
            </el-col>
        </el-row>
        <!--商品列表结束-->
        <el-footer>
            <div style="background-image: url('imgs/wave.png');height: 95px;"></div>
            <!--居中-->
            <div style="text-align:center;padding: 30px 0;background-color: #3f3f3f;color: #b1b1b1">
                <p><el-button round icon="el-icon-loading"></el-button>官方技术交流QQ群：777320883</p>
                <p><el-button round icon="el-icon-s-comment"></el-button><a href="git@oschina.cn">git@oschina.cn</a></p>
                <p><el-button round icon="el-icon-phone-outline"></el-button>售前及售后使用咨询：400-606-0201</p>

            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                search: "",
                topArr: [{title: "小米手机", saleCount: 124829},
                    {title: "华为手机", saleCount: 122298},
                    {title: "OPPO手机", saleCount: 211829},
                    {title: "一加手机", saleCount: 126329},
                    {title: "锤子手机", saleCount: 1267829},
                    {title: "苹果手机", saleCount: 122729},
                    {title: "三星手机", saleCount: 198229}],
            productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342},
                {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
                {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
                {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
                {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
                {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
                {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
                {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
                {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
                {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
                {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
                {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}]

        }
        },
        methods: {}
    })
</script>
</html>